export default [
  /* 用于路由鉴权 */
  {
    path: '/',
    component: '@/wrappers/auth',
    wrappers: ['@/wrappers/auth'],
  },
  {
    path: '/home',
    component: '@/pages/layouts/base-layouts',
    routes: [
      {
        name: '首页',
        path: '/home/homePage',
        component: '@/pages/Home/Dashbord',
      },
      {
        name: '布局',
        path: '/home/main',
        routes: [
          {
            name: '首页',
            path: '/home/main/index',
            component: '@/pages/Home/Dashbord',
          },
          {
            name: 'Grid布局',
            path: '/home/main/grid',
            component: '@/pages/Home/Mgrid',
          },
          {
            name: '瀑布流布局',
            path: '/home/main/WaterfallFlow',
            component: '@/pages/Home/WaterfallFlow',
          },
          {
            name: 'Game2048',
            path: '/home/main/Game2048',
            component: '@/pages/Home/Game2048',
          },
        ],
      },
      {
        name: '设计管理',
        path: '/home/design',
        routes: [
          {
            name: 'Meta2D设计器',
            path: '/home/design/Meta2D',
            component: '@/pages/design/Meta2D',
          },
          {
            name: 'x6设计器',
            path: '/home/design/X6',
            component: '@/pages/design/X6',
          },
          {
            name: 'Canvas练习页面',
            path: '/home/design/Canvas',
            component: '@/pages/design/Canvas',
          },
          {
            name: '梯形圆角tab',
            path: '/home/design/rounded',
            component: '@/pages/design/Rounded',
          },
        ],
      },
      {
        name: '组件库',
        path: '/home/MComponents',
        routes: [
          {
            name: '我的表格',
            path: '/home/MComponents/Mtable',
            component: '@/pages/MComponents/Mtable',
          },
          {
            name: '我的表单',
            path: '/home/MComponents/Mform',
            component: '@/pages/MComponents/Mform',
          },
          {
            name: '高级表格',
            path: '/home/MComponents/ProTable',
            component: '@/pages/MComponents/ProTable',
          },
          {
            name: '不等高虚拟列表',
            path: '/home/MComponents/VirtualList',
            component: '@/pages/MComponents/VirtualList',
          },
          {
            name: 'Arg表格示例',
            path: '/home/MComponents/ArgTableDemo',
            component: '@/pages/MComponents/ArgTableDemo',
          },
        ],
      },
      { component: '@/pages/404' },
    ],
  },
  { paht: '/login', component: '@/pages/Login' },
  // 若找不到上方已有的页面地址 则跳转404页面
  { component: '@/pages/404' },
];
